<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"/>
        <title>5_对象相关的知识</title>
    </head>
    <body>
        <script type="text/javascript">
            let a = 'name'

            let obj = {} // {name:'tom'}
            //变量赋值
            obj[a] = 'tom'
            console.log(obj);

        </script>
    </body>
</html>